﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true" CodeBehind="ProdutPage.aspx.cs" Inherits="GataBaseSys.WebForm2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <html>
    <head>
        <title>全部</title>
        <link href="Css/ProductPage.css" rel="stylesheet" />
        <link href="bootstrap/bootstrap.css" rel="stylesheet" />
    </head>
    <body>
        <div id="Main">
            <%--顶部查询--%>
            <div>
                <%--搜索框--%>
                <div class="top">
                    <ul>
                        <li class="topli1">您当前的位置:&nbsp 首页 > 类型 > 商业</li>
                        <li class="sp1"></li>
                        <li class="sp2">营业执照&nbsp
                            <asp:TextBox ID="txtName" CssClass="text1" runat="server" Width="200" placeholder="请输入需要搜索的房源名称"></asp:TextBox>
                            <asp:Button ID="btnSelect" CssClass="btn1" runat="server" Text="开始找房" OnClick="btnSelect_Click" />
                        </li>
                    </ul>
                </div>
                <%--固有条件查询--%>
                <div class="conditionSelect">
                    <ul class="cstul0">
                        <li><span>类型:</span></li>
                        <li>
                            <asp:Button ID="btnUnLimit" CssClass="cssdiv" runat="server" Text="不限" OnClick="btnUnLimit_Click" Style="height: 21px" /></li>
                        <li>
                            <asp:Button ID="btnOffice" CssClass="cssdiv1" runat="server" Text="写字楼" OnClick="btnOffice_Click" Style="height: 21px" /></li>
                        <li>
                            <asp:Button ID="btnApartment" CssClass="cssdiv1" runat="server" Text="公寓" OnClick="btnApartment_Click" /></li>
                        <li>
                            <asp:Button ID="btnResidence" CssClass="cssdiv1" runat="server" Text="住宅" OnClick="btnResidence_Click" /></li>
                        <li>
                            <asp:Button ID="btnBusiness" CssClass="cssdiv1" runat="server" Text="商业" OnClick="btnBusiness_Click" /></li>
                        <li>
                            <asp:Button ID="btnVilla" CssClass="cssdiv1" runat="server" Text="别墅" OnClick="btnVilla_Click" /></li>
                        <li>
                            <asp:Button ID="btnFreeShop" CssClass="cssdiv1" runat="server" Text="自由购" OnClick="btnFreeShop_Click" /></li>
                    </ul>
                    <ul class="cstul0">
                        <li><span>地区:</span></li>
                        <li>
                            <asp:Button ID="btnLimit" CssClass="cssdiv" runat="server" Text="不限" OnClick="btnLimit_Click" /></li>
                        <li>
                            <asp:Button ID="btnBeiJing" CssClass="cssdiv1" runat="server" Text="北京" OnClick="btnBeiJing_Click" /></li>
                        <li>
                            <asp:Button ID="btnShangHai" CssClass="cssdiv1" runat="server" Text="上海" OnClick="btnShangHai_Click" /></li>
                        <li>
                            <asp:Button ID="btnChongQing" CssClass="cssdiv1" runat="server" Text="重庆" OnClick="btnChongQing_Click" /></li>
                        <li>
                            <asp:Button ID="btnGuangZhou" CssClass="cssdiv1" runat="server" Text="广州" OnClick="btnGuangZhou_Click" /></li>
                        <li>
                            <asp:Button ID="BtnShenZhen" CssClass="cssdiv1" runat="server" Text="深圳" OnClick="BtnShenZhen_Click" /></li>
                        <li>
                            <asp:Button ID="btnGuiZhou" CssClass="cssdiv1" runat="server" Text="贵州" OnClick="btnGuiZhou_Click" /></li>
                    </ul>
                    <ul class="cstul0">
                        <li><span>价格:</span></li>
                        <li>
                            <asp:TextBox ID="txtPriceOne" runat="server"></asp:TextBox></li>
                        <li>-----------</li>
                        <li>
                            <asp:TextBox ID="txtPriceTwo" runat="server"></asp:TextBox></li>
                        <li>
                            <asp:Button ID="BtnSelectPrice" CssClass="cssdivbtn" runat="server" Text="查询" OnClick="BtnSelectPrice_Click" Style="height: 21px" /></li>
                    </ul>
                    <%--优先显示--%>
                </div>
                <div>
                    <ul class="cstul">
                        <li>
                            <asp:Button ID="btnNonmal" CssClass="cssdivbtn2" runat="server" Text="默认排序" OnClick="btnNonmal_Click" /></li>
                        <li>
                            <asp:Button ID="btnNew" CssClass="cssdivbtn2" runat="server" Text="最新发布" OnClick="btnNew_Click" /></li>
                        <li>
                            <asp:Button ID="btnCount" CssClass="cssdivbtn2" runat="server" Text="精品房屋" OnClick="btnCount_Click" /></li>
                        <li>
                            <asp:Button ID="btnSingle" CssClass="cssdivbtn2" runat="server" Text="廉价实惠" OnClick="btnSingle_Click" /></li>
                        <li>
                            <asp:Button ID="btnLost" CssClass="cssdivbtn2" runat="server" Text="捡漏房源" OnClick="btnLost_Click" /></li>
                    </ul>
                </div>
            </div>
            <%--显示--%>
            <div id="Middle">
                <asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                        <div class="Size">
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div id="listex">
                            <ul class="lstulq">
                                <li><img class="img_box" src="<%# Eval("AuctionPicture") %>" /></li>
                            </ul>
                            <ul  class="lstulw">
                                <li class="tn">
                                   
                                    <a href='DetailPage.aspx?id=<%# Eval("AuctionID") %>'> <h2><%# Eval("AuctionName") %></h2></a></li>
                                <li class="tn1"><a href="DetailPage.aspx"><b>地址：</b><%# GetValue(Eval("AuctionCategory").ToString()) %></a></li>
                                <li class="tn1"><a href="DetailPage.aspx">状态：<%# Eval("AuctionState") %></a>
                                    </li>
                                <li class="tn1"><a href="DetailPage.aspx"><%# Eval("AuctionIntroduce") %></a></li>
                            </ul>
                            <ul  class="lstule">
                                <li class="tn4"><a href="DetailPage.aspx">起拍价：<span><%# Eval("AuctionPrice","{0:C}") %></span>元</a></li>
                            </ul>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                        </div>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <%--//数据分页--%>
            <div class="container">
                <ul class="pagination">
                    <li class="page-item"><a class="page-link" href="ProdutPage.aspx?index=1">首页</a></li>
                    <%--循环遍历输出数据--%>
                    <% for (int i = 0; i < list.Count / size; i++)
                        {
                            //获取后台index的数据并输出
                            Response.Write($"<li class='page-item'><a class='page-link' href='ProdutPage.aspx?index={i + 1}'>{i + 1}</a></li>");
                        } %>
                    <li class="page-item"><a class="page-link" href="ProdutPage.aspx?index=<%=lastPage %>">尾页</a></li>
                </ul>
            </div>
        </div>
    </body>
    </html>
</asp:Content>

